package com.zhang.springbootdemo.service.impl;

import com.zhang.springbootdemo.dto.TestStudentDto;
import com.zhang.springbootdemo.mapper.StudentMapper;
import com.zhang.springbootdemo.pojo.Student;
import com.zhang.springbootdemo.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class StudentServiceImpl implements StudentService {
    @Autowired
    private StudentMapper studentMapper;
    @Override
    public List<Student> studentList() {
        return studentMapper.studentList();
    }

    @Override
    public List<Student> studentList(int tid) {
        return studentMapper.studentList(tid);
    }

    @Override
    public List<Map> getStudents(TestStudentDto testStudentDto) {
        return studentMapper.getStudents(testStudentDto);
    }

    @Override
    public List<Map> getStudentsByGet(String name, String tId) {
        return studentMapper.getStudentsByGet(name,tId);
    }
}
